package com.tedu.interceptor.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@Controller
public class UserController {
    @RequestMapping("/users/reg")
    public int reg(){
        System.out.println("UserController.reg():开始用户注册");
        return 1;
    }
    @RequestMapping("/users/login")
    public String login(){
        System.out.println("UserController.login():开始用户登录");
        return "登录成功";
    }
    @RequestMapping("/users/delete")
    public String delete(){
        System.out.println("UserController.delete():开始删除用户");
        return "删除成功";
    }
}
